import { defineStore } from 'pinia'
import { ref } from 'vue'

const useUserStore = defineStore('user', () => {
  const userInfo = ref({})
  const setUserInfo = (data) => {
    userInfo.value = data
  }
  return { userInfo, setUserInfo }
})

export default useUserStore